% Compute root-mean-square (RMS) value of an input vector
% 4/26/2007: bryan conrad

function out=rms(x);

n = norm2(x);
l = length(x);
out = n/sqrt(l);
